// app.js
import fly from './utils/request'
import './utils/leancloud-init'
App({
  onLaunch() {
    //尝试提取本地存储用户信息
    try {
        var value = wx.getStorageSync('userInfo')
        if (value) {
            this.userInfo = value
            // Do something with return value
        }
    } catch (e) {
        console.log('本地存储提取失败');
    // Do something when catch error
    }
  },
  userInfo:null,
  fly
})
